<template>
	<div class="" style="width: 100%;">
		<head-top></head-top>

		<div class="table_container" :style="'width: 90%;  overflow: hidden;  height:'+(winHeight/2)+'px;'">
			
			<div style="margin: 5px; display: flex; width: 100%;">


				<span style="font-size: medium; padding: 10px;">  检查香港文件接口: (胡睦)</span>

				<span>
					
					<el-button style="margin-left: 20px;" size="mini" type="success"  @click="get_api1()">执行</el-button>
				</span>

			</div>
			<div style="margin: 5px; display: flex; align-items: center; flex: 1; min-height: 0;">
				<span style="font-size: medium; padding: 10px;">结果:</span>
				<pre style="font-size: medium;
							padding: 10px;
							border: 1px solid #ccc;
							min-width: 30%;
							flex: 1;
							 /* 设置固定高度 */
							overflow-y: auto; /* 内容超出时垂直滚动 */
							">
					<span v-html="result"></span>
				</pre>
			</div>
		</div>
		

	</div>
</template>

<script>
	import headTop from '@/components/headTop'
	export default {
		data() {
			return {
				checkflag: false,
				account_choice: "",
				account_options: [],
				margin_change: 0,
				margin_set: 0,
				symbol:'600000',
				price:'0.0',
				count: 0,
				LP_account_list: [],
				result: "",
				sellresult:'',
				
				screenWidth: document.body.clientWidth, // 屏幕尺寸
				screenHeight: document.body.clientHeight, // 屏幕尺寸
				opid: "0",
				arrange_data: [],
				allow_readpw: 'no',





			}
		},
		components: {
			headTop,
		},



		activated() {

			// console.log("当前登入用户", this.$store.state.adminInfo.name);
			//    if (this.tradesysPermission_list.indexOf (this.$store.state.adminInfo.permission) ==-1) {
			// 	console.log(this.$store.state.adminInfo.name,"未登入")
			// 	this.$message({type: 'error',	message: '没有权限',});
			// 	this.$router.push({
			// 		path: `/manage`
			// 	})
			// }
		},
		created() {
		},
		computed: {

		},

		methods: {
			



			
			get_api1() {
				var that = this
				

				const data = {
					module_name: "yxk_tool.useYueqiao_checkEgRestrictionSymbol",
					function_name: "checkEgRestrictionSymbol",
					args: [],
					kwargs: {}
				};

				that.$axios.post(that.lpcallfunction, data).then(response => {
					console.log(response.data, 'check_account_margin');
					if (response.status = 200) {
						if (response.data[0].code == 'error') {
							this.$message({
								message: response.data[0].message,
								type: 'error'
							});

						} else {
							this.$message({
								message: '完成',
								type: 'success'
							});
							that.result = response.data[0].message.trim()
						}
					} else {
						console.log(response.data[0].statusCode);
					}

				})
			},





		},
	}
</script>

<style>
	.el-table .bacOrangeRed {
		background: OrangeRed;
	}

	.el-table .bacorange {
		background: orange;
	}

	.el-table .bacpurple {
		background: purple;
	}

	.el-table .success-row {
		background: grey;
		color: white;
	}

	.table_container {
		margin: 20px 5%;
		/* background-color: #0000FF; */
	}

	.el-table .grey {
		background: Silver;
	}

	.el-table .DarkGray {
		background: DarkGray;
	}

	.el-table .LightCoral {
		background: LightCoral;
		color: white;
	}

	.el-table .LimeGreen {
		background: LimeGreen;
	}

	.el-table .green {
		background: green;
	}

	.el-table .LightSlateGray {
		background: LightSlateGray;
	}

	.el-table .red {
		background: red;
		color: white;
	}

	.el-table .orange {
		background: NavajoWhite;
		color: black;
	}

	.el-table .blue {
		background: blue;
	}

	.el-table .purple {
		background: Violet;
		color: black;
	}

	.el-table .LightSteelBlue {
		background: LightSteelBlue;
	}

	.el-table .Goldenrod {
		background: Goldenrod;
	}

	.el-table .xingmu {
		background: Goldenrod;
		color: red;
		font-weight: bold;

	}


	.el-table .black {
		background: black;
		color: white;
	}

	.el-table .green {
		background: green;
		color: white;
	}

	.el-table .CornflowerBlue {
		background: CornflowerBlue;
		color: white;
	}

	.el-table .DodgerBlue {
		background: DodgerBlue;
	}
</style>